package com.itheima.search.service;

import com.itheima.search.domain.*;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public interface ISearchService {
    SearchResult searchNews(SearchParam param) throws IOException;

    NewsVO searchNewsById(Long newsId);

    void saveNewsToEs(NewsVO news);

    void deleteNewsFromEs(Long newsId);

    List<HotNewsVO> getHotNews();
}
